<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class WlGood extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'wl_goods';
    protected $fillable = [
        "barcode",
    ];
    //外联
    public function location(){
        return $this->belongsTo(Location::class);
    }

    //商品分类
    public function goodsCategory(){
        return $this->belongsTo(GoodsCategory::class);//
    }

    public function author(){
        return $this->belongsTo(Author::class);
    }
}
